package com.shuai.analysis.domain.request;

import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.Pattern;
import java.io.Serializable;

@Data
@Validated
public class ChartAlyRequest implements Serializable {
    /**
     * 分析需求
     */
    @Length(max = 400, message = "分析目标不能超过400字")
    private String goal;
    /**
     * 生成的图表名称
     */
    @Length(max = 50, message = "图表名称不能超过50字")
    private String name;

//    /**
//     * 生成图表类型
//     */
//    @Pattern(regexp = "^(折线图|柱状图|堆叠图|饼图|雷达图)$", message = "图表类型必须是折线图、柱状图、堆叠图、饼图或雷达图之一")
//    private String chartType;

    private static final long serialVersionUID = 3191241716373120793L;
}
